,-0,System.Collections.Generic.IComparer{-0})} ,-0)}
ScheduledItem(IScheduler, TValue, Func, TAbsolute, IComparer) constructor¶
Defined in
Type: ScheduledItemSystem.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer) - 2.
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)
1. Overload¶
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer)
Summary: Creates a materialized work item.
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Recursive scheduler to invoke the scheduled action with. |
state | TValue | State to pass to the scheduled action. |
action | Func | Scheduled action. |
dueTime | TAbsolute | Time at which to run the scheduled action. |
comparer | IComparer | Comparer used to compare work items based on their scheduled time. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or action or comparer is null. |
2. Overload¶
public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)
Summary: Creates a materialized work item.
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Recursive scheduler to invoke the scheduled action with. |
state | TValue | State to pass to the scheduled action. |
action | Func | Scheduled action. |
dueTime | TAbsolute | Time at which to run the scheduled action. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or action is null. |